package com.nelson.myapplication.constructdemo

class ConstructInitDemo {
    constructor() {
        println("Construct")
    }

    init {
        println("init Construct 1")
    }
    /**
     * 执行结果为
     * init Construct 1
     * Construct
     */
}

class Person(val name: String) {
    var children: MutableList<Person> = mutableListOf()

    constructor() {
    }
}